Title Banner

Previous Book Contents Book Index Next

Inside Macintosh: QuickDraw GX Graphics /
Chapter 1 - Introduction to QuickDraw GX Graphics / Geometric Shapes


Geometric Shape Geometries

Each type of geometric shape uses the geometry property of its shape object in a slightly different manner. For example, empty shapes and full shapes store no information in their geometry, because they require no further geometry information--their shape type says it all.

However, for other types of geometric shapes, the shape type does not contain all the geometry information necessary to define the shape. The geometries of these shapes contain (x, y) coordinate pairs called geometric points--points that specify the location, dimension, and form of the geometric shapes:

For more information about the geometries of each geometric shape type, see the chapter "Goemetric Shapes" in this book.

Figure 1-3 shows a polygon shape with a single polygon contour made up of three geometric points. This figure shows three views of the polygon geometry: as a list of (x, y) coordinate pairs, as three geometric points plotted on a geometric grid, and as three points connected by three straight lines. This third way of viewing geometries is used frequently throughout this book, as it shows not only the geometric points, but also the implied edges that connect them. Notice that geometric points have fixed-point coordinates--you can specify fractional positions.

Figure 1-3 A polygon shape with a single polygon contour containing three geometric points


Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996




Navigation graphic, see text links

Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help